package cn.edu.whu.irlab.web;

import cn.edu.whu.irlab.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpSession;

/**
 * Created by Roger on 2016/8/1.
 */
@Controller
@RequestMapping("/user")
public class UserController {

    @Autowired
    private UserService userService;

    @RequestMapping(method = RequestMethod.GET)
    public String getUser(HttpSession session, Model model){
//        model.addAttribute("user", userService.selectByPrimaryKey((Integer)session.getAttribute("userId")));
        return "";
    }
}
